package com.nashuju.web.entity.sw;

import java.util.Date;

import org.durcframework.core.expression.annotation.ValueField;
import org.durcframework.core.support.SearchEasyUI;
import org.durcframework.core.util.DateUtil;


public class SCompanySch extends SearchEasyUI{

	//根据时间进行搜索的部分
	private Date createdStartSch;
	private Date createdEndSch;

	@ValueField(column = "createdTime", equal = ">=")
	public Date getCreatedStartSch() {
		return createdStartSch;
	}

	public void setCreatedStartSch(Date createdStartSch) {
		this.createdStartSch = createdStartSch;
	}

	@ValueField(column = "createdTime", equal = "<")
	public Date getCreatedEndSch() {
		if (createdEndSch != null) {
			return DateUtil.getDateAfterDay(createdEndSch, 1);
		}
		return createdEndSch;
	}

	public void setCreatedEndSch(Date createdEndSch) {
		this.createdEndSch = createdEndSch;
	}


    private Integer idSch;
    private String nameSch;
    private String addressSch;
    private String responsible_phoneSch;
    private Date edited_timeSch;
    private Date created_timeSch;
    private String uuidSch;
    private String shortNameSch;
	private String levelSch;

    public void setIdSch(Integer idSch){
        this.idSch = idSch;
    }
    
    @ValueField(column = "id")
    public Integer getIdSch(){
        return this.idSch;
    }

    public void setNameSch(String nameSch){
        this.nameSch = nameSch;
    }
    
    @ValueField(column = "name")
    public String getNameSch(){
        return this.nameSch;
    }

    public void setAddressSch(String addressSch){
        this.addressSch = addressSch;
    }
    
    @ValueField(column = "address")
    public String getAddressSch(){
        return this.addressSch;
    }

    public void setResponsiblePhoneSch(String responsible_phoneSch){
        this.responsible_phoneSch = responsible_phoneSch;
    }
    
    @ValueField(column = "responsible_phone")
    public String getResponsiblePhoneSch(){
        return this.responsible_phoneSch;
    }

    public void setEditedTimeSch(Date edited_timeSch){
        this.edited_timeSch = edited_timeSch;
    }
    
    @ValueField(column = "edited_time")
    public Date getEditedTimeSch(){
        return this.edited_timeSch;
    }

    public void setCreatedTimeSch(Date created_timeSch){
        this.created_timeSch = created_timeSch;
    }
    
    @ValueField(column = "created_time")
    public Date getCreatedTimeSch(){
        return this.created_timeSch;
    }

    public void setUuidSch(String uuidSch){
        this.uuidSch = uuidSch;
    }
    
    @ValueField(column = "uuid")
    public String getUuidSch(){
        return this.uuidSch;
    }

	/**
	 * @return the shortNameSch
	 */
    @ValueField(column = "short_name")
	public String getShortNameSch() {
		return shortNameSch;
	}

	/**
	 * @param shortNameSch the shortNameSch to set
	 */
	public void setShortNameSch(String shortNameSch) {
		this.shortNameSch = shortNameSch;
	}

	/**
	 * @return the levelSch
	 */
    @ValueField(column = "level")
	public String getLevelSch() {
		return levelSch;
	}

	/**
	 * @param levelSch the levelSch to set
	 */
	public void setLevelSch(String levelSch) {
		this.levelSch = levelSch;
	}


}